<?php
// $Id$

/**
 * Controller_Admin_Somestuffs 控制器
 */
class Controller_Admin_Articles extends Controller_Abstract
{

    function actionIndex() {

        FUNC::getParent(Column::getFormCache(),  $this->_context->col_id, $parents, array('col_id'));    //查找父亲
        //        unset($parents[0]);
        FUNC::formatArrayKey($parents);
          //    dump($parents);

        $this->_view['parents_array'] = $parents;
    }

    function actionGetData()
    {
        //这里是搜索字段和操作符，like就是模糊搜索了，=就是严格等于，很好理解
        $wheres = array('title'=>'like', 'col_id' => '=');
        $this->_getJQGridData(Article::find(), $wheres, 'user, extend_fields, column');
    }




}


